<!DOCTYPE HTML>
<html>
    <head>
        <link rel="Stylesheet" type="text/css" href="/static/css/typo.css">
        <link rel="Stylesheet" type="text/css" href="/static/css/reset_typo.css">
        <link rel="Stylesheet" type="text/css" href="/static/css/tango.css">
        <link rel="Stylesheet" type="text/css" href="/static/css/style.css">
	<link href="/static/images/favicon.ico" mce_href="/static/images/favicon.ico" rel="shortcut icon" type="image/x-icon" />
        <title>bash - thornbird的个人wiki</title>
        <meta name="keywords" content=""/>
        <meta name="description" content=""/>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        
<script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.js"></script>
<script language="javascript" type="text/javascript">
    var oddClick = true;
    $(document).ready(function() {
      $('#toggle-button').click(function() {
        $('#container').animate({
          width: oddClick? "100%":"60%",
        });
        $(this).text(oddClick? "窄版":"宽版");
        oddClick = !oddClick;
      });
    });
</script>

    </head>

    <body>
        <div id="container" class="typo">
            
    <div id="header">
        <div id="post-nav">
            <div id="toggle-button">宽版</div>
            
            <a href="/">Home</a> » <a href="/#编辑器">编辑器</a> » bash
            
        </div>
    </div>
    <div class="clearfix"></div>
    <div id="content">
        <h4 id="awk">AWK</h4>
<ul>
<li><code>awk 'BEGIN{FS="\t"} {print $0 &gt;&gt;$2".txt" }' alldata.txt</code>   每行以\t分割，以第三列group并命名 最终把alldata.txt拆分为多个txt</li>
</ul>
<h4 id="_1">快捷键</h4>
<ul>
<li><code>Ctrl + u</code> 删除开始为当前光标处</li>
<li><code>Ctrl + l</code> 清屏,相当于clear</li>
<li><code>echo &gt; filename</code> 清除文件内容</li>
</ul>
    </div>

        </div>
        <div id="footer">
              <p>
                Copyright © 2012-2016 thornbird.
                Powered by <a href="http://simiki.org/" target="_blank">Simiki</a>.
                Theme by <a href="https://github.com/tankywoo/yasimple" target="_blank">YASimple</a>.
              </p>
                <p>Last Update 2016-07-28 17:00:33</p>
        </div>
    </body>
</html>